let detailState = {
    userAcount: 0,
    userName: ''
}

const detailStateReducer = (state = detailState, action) => {
    switch (action.type) {
        case 'SET_DETAIL_STATE':
            return {
                ...state,
                userAcount: action.payload
            }
        default:
            return state;
    }
}

export default detailStateReducer;